package com.example.deliveryapplication.sql

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Update
import com.example.deliveryapplication.entity.CU
import com.example.deliveryapplication.entity.Client

@Dao
interface CUDao {
    @Insert
    fun insertChart(cu: CU): Long
    @Query("select * from CU")
    fun loadAllChart(): List<CU>
    @Query("select * from CU where cuId=:id")
    fun loadCUById(id:Int): List<CU>
    @Update
    fun updateCU(cu:CU):Int
}